# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# This PKGBUILD was autocreated.  See https://xtermin.us/archperl/ for details
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-datetime-event-ical
pkgver=0.13
pkgrel=8
pkgdesc="Perl/CPAN Module DateTime::Event::ICal"
arch=('any')
url="https://search.cpan.org/dist/DateTime-Event-ICal"
license=("GPL" "PerlArtistic")
depends=('perl-datetime-event-recurrence')
source=("https://www.cpan.org/authors/id/F/FG/FGLOCK/DateTime-Event-ICal-$pkgver.tar.gz")
sha256sums=('53da4384ef5cf30ee87dc0131f4b6eee2121cc0eba347162a328b9bcfaf475ea')

build() {
  cd "$srcdir"/DateTime-Event-ICal-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/DateTime-Event-ICal-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
